@REM 将QT文件转化为Python文件

@echo OFF
@echo OFF & setlocal enabledelayedexpansion

set name=screenShot

for %%i in (./Ui/*.ui) do (
    echo %%i
    set n=%%i
    set b=!n:.ui=.py!

    python -m PyQt5.uic.pyuic ./ui/%%i -o ./!b!
)

for %%i in (./Ui/*.qrc) do (
    echo %%i
    set n=%%i
    set b=!n:.qrc=_rc.py!
    
    python -m PyQt5.pyrcc_main -o ./!b! ./ui/%%i
)

pause